package 运动员;

/**
 * @author Administrator
 * @ClassName Person
 * @TIME 星期二 2020/12/22
 */
public class Person {
    private String name;
    private int age;
    private String gender;

    /**
     * 空参 and 全参
     */
    public Person(){}
    public Person(String name,int age,String gender){
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    /**
     * 成员方法
     * eat 吃饭
     * sleep 睡觉
     */
    public void eat(){
        System.out.println("吃饭");
    }
    public void sleep(){
        System.out.println("睡觉");
    }

    /**
     * set and get
     * @return name age gender
     */
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
}
